import axios from '@/libs/api.request'

export const getDailyList = ({ adminName, status, adminId, pageId }) => {
  const data = {
    adminName,
    status,
    adminId,
    pageId
  }
  return axios.request({
    url: 'Daily/getDailyList',
    data,
    method: 'post'
  })
}

export const delDaily = (id) => {
  return axios.request({
    url: 'Daily/delDaily',
    data: {id},
    method: 'post'
  })
}

export const editDaily = ({id,adminId,title,content,status}) => {
  return axios.request({
    url: 'Daily/editDaily',
    data: {id,adminId,title,content,status},
    method: 'post'
  })
}


export const getDailyDetail = (id) => {
  return axios.request({
    url: 'Daily/getDailyDetail',
    data: {id},
    method: 'post'
  })
}
